@extends('frontend/layouts/default')

@section('content')

<h1>Import Master Code</h1>
<div>
<span>{{ link_to_route('acc.master.code.index', 'List Master Code', null, array('class' => 'btn btn-info')) }}</span>
</div>

<div class="margin:10px">

<div class="uploader" style="width:98%">
  <div class="bit-25p">
    <div class="drag-and-drop-zone">
      <div>DROP HERE</div>
      <div class="or">-or-</div>
      <div class="browser btn">
        <span>Click to open the file</span><input type="file" title="Click to add CSV" multiple="multiple" accept=".csv" name="files" class="selectfile">
      </div>
    </div>
  </div>
  <div class="bit-75p">
    <div class="control-zone">
      <div class="head">Uploads</div>
      <div class="files">
        <span class="demo-note">No Files have been selected/droped yet...</span>
      </div>
    </div>
  </div>
  <div class="bit-1">
    <div class="debug-zone">Debug</div>
  </div>
  <div style="clear:both"/>
</div>

</div>

@stop

@section('pagestyles')
    <link rel="stylesheet" type="text/css" href={{ asset('assets/upload/uploader.css') }} />
@stop

@section('pagescripts')
<script src="{{ asset('assets/upload/dmuploader.js') }}"></script>
<script>
	$('.uploader').dmUploader({url: '',allowedTypes: '.csv'});
</script>
@stop

